<template>
    <div class="sort">
      <el-table
          :data="tableData"
          style="width: 100%">
        <el-table-column
            type="index">
        </el-table-column>
        <el-table-column
            prop="cid"
            label="商品类别"
            width="180">
        </el-table-column>
        <el-table-column
            prop="ccategory"
            label="商品名称">
        </el-table-column>
      </el-table>
    </div>
</template>

<script>
export default {
  data() {
    return {
      tableData: [{
        cid: '',
        ccategory: ''
      }],
    }
  },
  mounted() {
    this.$http.get("rjbClassiflcation/selectAll")
        .then(data => {
          // console.log(data.data);
          this.tableData = data.data;
        });
  }
};
</script>

<style scoped>
.sort{
    width: 100%;
    min-height: 100%;
    padding: 15px;
    box-sizing: border-box;
}
</style>
